package galaxies;

import java.util.HashMap;

import view.EViewList;
import view.AbstractView;
import view.View;

import com.jme3.asset.AssetManager;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.texture.Texture;

/*
 * Factory for galaxy views
 * 
 * Input:  MGalaxy
 * Output:  VGalaxy
 */

public class GalaxyViewBuilder {
	
	public GalaxyViewBuilder() {}
	
	public HashMap<EViewList, AbstractView> buildViews(AssetManager assets) {
		
		HashMap<EViewList, AbstractView> views = new HashMap<EViewList, AbstractView>();
		//Temp code only
		Texture texture = null;
		Material material = new Material(assets, "Common/MatDefs/Misc/Unshaded.j3md");
		//material.setTexture("ColorMap", texture);
		material.setColor("Color", ColorRGBA.Blue);
		GalaxyView defaultView = new GalaxyView(EViewList.DEFAULT, material);		
		views.put(defaultView.getName(), defaultView);
		
		return views;
	}
}
